package creationalPattern.methodFactory;

public class ChicagoPizzaStore extends PizzaStore{
    @Override
    Pizza createPizza(String item) {

        if (item.equals("veggie")) {
            return new ChicagoStyleVeggiePizza();
        } else if (item.equals("clam")) {
            return new ChicagoStyleClamPizza();
        } else return null;
    }
}
